package com.sky.mapper;

import com.sky.entity.OrderDetail;
import com.sky.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    /**
     * stream流批量插入购物车商品
     * @param orderDetail
     */
    void addOrderDetail(@Param("orderDetail") OrderDetail orderDetail);


    //根据订单ID查询订单菜品
    List<OrderDetail> findById(Long id);



}
